package com.elgenring.org.domain;

import com.elgenring.basic.domain.BaseDomain;
import com.elgenring.basic.query.BaseQuery;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import springfox.documentation.spring.web.json.Json;

import java.util.ArrayList;
import java.util.List;

/**
* @Description: 实体类
* @Author: Atlas
* @Version: 1.0
* @Date:  2022/6/21 21:29
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {

    // 编号
    private Long id;

    // 部门编号
    private String sn;

    // 员工姓名
    private String name;

    // 上下级
    private String dirPath;

    //  盐值 1启用 0禁用
    private Integer state;

    // 部门经理
    private Long manager_id;

    // 上级部门id
    private Long parent_id;
    // 上级部门
    private Department parent;

    // 部门经理
    private Employee manager;

    // 子部门数字段
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<Department>();



}
